<?php

include_once "orders.class.php";
include_once "catalog.class.php";
include_once "product.class.php";
include_once "sales_reporting.class.php";
include_once "shipment.class.php";
include_once "vendors.class.php";
include_once "metals.class.php";
include_once "diamond_select.class.php";

// ----------------------------------------------------------------------------
// --- [ Export code ] --------------------------------------------------------
// ----------------------------------------------------------------------------

function orders_AdminExport()
{
    $orders =& new OrdersList();
    
    $cataloglist =& new CatalogList(&$orders);
    $orders->AddSubPlugin($cataloglist);
    
    $productlist =& new ProductList(&$orders);
    $orders->AddSubPlugin($productlist);
    
    $salesproductlist =& new SalesReportingList(&$orders);
    $orders->AddSubPlugin($salesproductlist);
	
	$diamond_select =& new DiamondSelect(&$orders);
	$orders->AddSubPlugin($diamond_select);

//  $metals   =& new MetalsPlugin(&$orders);
//  $orders->AddSubPlugin(&$metals);

//  $ShipmentList =& new ShipmentList(&$orders);
//  $orders->AddSubPlugin($ShipmentList);
    
  $Vendors =& new vendors(&$orders);
  $orders->AddSubPlugin($Vendors);


    
    return $orders;
}

?>